<?php 
global $wpdb;

if($sm != '') {
	//get the rows
	$row = $wpdb->query(
			"
			DELETE FROM ".$wpdb->prefix."hfr_url_craw
			WHERE sitemap = '".$sm."'
			"
		);
 		
	//Remove from server hatforrent
	$hfrRemoveUrl = HFR_SERVER."/rest/remove-url-craw?sitemap=".$sm;
	hfr_remote_get($hfrRemoveUrl);
}

wp_redirect("admin.php?page=hfr_source_manager");

?>
